{#
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.

Copyright (c) 2021-present Kaleidos INC
#}

{% extends "emails/hero-body-html.jinja" %}

{% if membership.invited_by %}
    {% set sender_full_name=membership.invited_by.get_full_name() %}
{% else %}
    {% set sender_full_name=_("someone") %}
{% endif %}


{% block body %}
    {% trans full_name=sender_full_name, project=membership.project, product_name=sr("product_name") %}
    <h2>You have been invited to {{ product_name }}!</h2>
<p>Hi! {{ full_name }} has sent you an invitation to join project <em>{{ project }}</em> in {{ product_name }}.</br> Taiga is an Open Source Agile Project Management Tool. There is no cost for you to be a Taiga user.</p>
    {% endtrans %}

    {% if membership.invitation_extra_text %}
        {% trans extra=membership.invitation_extra_text|linebreaksbr %}
    <p><small>And now a few words from the jolly good fellow or sistren<br/> who thought so kindly as to invite you</small></p>
    <p><strong>{{ extra }}</strong></p>
        {% endtrans %}
    {% endif %}

    <a class="button" href="{{ resolve_front_url("invitation", membership.token) }}"
       title="{{ _("Accept your invitation to Taiga") }}">{{ _("Accept your invitation") }}</a>
    {% trans signature=sr("signature") %}
    <p><small>{{ signature }}</small></p>
    {% endtrans %}
{% endblock %}
